﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace UIT_CV_Management
{
     public class CheDoHoc
    {
        public String maCheDoHoc;
        private String tenCheDoHoc;

        public CheDoHoc(String _maCheDoHoc, String _tenCheDoHoc)
        {
            maCheDoHoc = _maCheDoHoc;
            tenCheDoHoc = _tenCheDoHoc;
        }
        public static CheDoHoc ChinhQuy()
        {
            CheDoHoc temp = new CheDoHoc("A000001", "ChinhQuy");
            return temp;
        }
        public static CheDoHoc ChuyenTu()
        {
            CheDoHoc temp = new CheDoHoc("A000002", "ChuyenTu");
            return temp;
        }
        public static CheDoHoc TaiChuc()
        {
            CheDoHoc temp = new CheDoHoc("A000003", "TaiChuc");
            return temp;
        }
        public static CheDoHoc MoRong()
        {
            CheDoHoc temp = new CheDoHoc("A000004", "MoRong");
            return temp;
        }
        public static CheDoHoc cheDoHocFormID(String _maCheDoHoc)
        {
            if (_maCheDoHoc == "A000001")
            {
                CheDoHoc temp = new CheDoHoc("A000001", "ChinhQuy");
                return temp;
            }
            if (_maCheDoHoc == "A000002")
            {
                CheDoHoc temp = new CheDoHoc("A000002", "ChuyenTu");
                return temp;
            }
            if (_maCheDoHoc == "A000003")
            {
                CheDoHoc temp = new CheDoHoc("A000003", "TaiChuc");
                return temp;
            }
            if (_maCheDoHoc == "A000004")
            {
                CheDoHoc temp = new CheDoHoc("A000004", "MoRong");
                return temp;
            }
            return null;
    
        }
    }
}
